home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 250_01 / log10.s < prev    next >
Text File  |  1987-10-27  |  512b  |  29 lines

  1.     .ttl    "log10.s"
  2.  
  3. * MC68020/MC68881 IEEE Format Single Precision Routines
  4. *
  5. * Written by: Edmund H. Ramm
  6. *
  7. * _log10 entry point for single prec. dec. logarithm, operand in 4(sp)
  8. *
  9. *     sp     4
  10. *    ---------------
  11. *    | ret  |  x   |
  12.  
  13.  
  14.     .text
  15.     .globl    _log10
  16.  
  17.  
  18. _log10:
  19. *
  20. *    on exit, d0 = log10( 4(sp) )
  21. *
  22. *    flog10.s    4(sp),fp0    * fp0 <-- log10( 4(sp) )
  23.     dc.w    $f22f,$4415,$0004
  24. *    fmove.s    fp0,d0            * d0 <-- dec. log
  25.     dc.w    $f200,$6400
  26.     rts
  27.  
  28.     .end
  29.